package com.xucia.jsponic.query;

public class ComparisonCondition implements Condition {
	public enum Operator {
		Equal("="), NotEqual("!="), GreaterThan(">"), LessThan("<"), Like(" LIKE ");
		String symbol;
		private Operator(String symbol) {
			this.symbol = symbol;
		}		
	}
	Operator operator;
	Expression left;
	Expression right;
	public ComparisonCondition(Operator operator, Expression left,
			Expression right) {
		super();
		this.operator = operator;
		this.left = left;
		this.right = right;
	}
	public Operator getOperator() {
		return operator;
	}
	public Expression getLeft() {
		return left;
	}
	public Expression getRight() {
		return right;
	}
}
